<%--
    Document   : popuptemplate
    Created on : Jun 4, 2012, 2:47:19 PM
    Author     : ems
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <style>
            .blue{
                background-color: #E0EFFC;
            }
        </style>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        $j = jQuery.noConflict();
        $j(document).ready(function(){

           
            validateform("form-input-customer");
        });

    </script>
    <f:view>
        <h:form id="form-input-customer" >
            <body style=" float:left; width:auto; height:auto; margin:0px;">
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

                <div class="popup" style="height:550px; width:800px">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="Team"/></div>
                    </div>
                    <div class="popup-content">
                        <div class="main_content">
                            <div class="form_item_content" style="margin-top: 0px;margin-left: 0px;">

                                <div class="item_content" style="display:block">
                                    <div style="width: 100%;float: left;margin-bottom: 3px;margin-top: 3px;">
                                        <span style="float:left;">Tìm kiếm:</span> <h:inputText style="float:left;" value=""/>
                                        
                                        
                                    </div>
                                     <div style="float:left;width: 100%;overflow: scroll;height: 450px;">
                                    <rich:dataTable value="#{v030Controller.listsearch}" var="cus"
                                                    rows="50" rowClasses="blue,white" rowKeyVar="row">
                                         <rich:column width="10px">
                                            <f:facet name="header">
                                                <h:outputText value="STT" />
                                            </f:facet>

                                             <div style="width:100%;text-align: center;">
                                                <h:outputText value="#{row+1}" />
                                            </div>
                                        </rich:column>
                                        <rich:column style="width:10px; text-align:center">
                                            <f:facet name="header">
                                                <h:selectBooleanCheckbox value="#{cus.selected}" title="All"/>
                                            </f:facet>
                                            <div style="text-align: center;width:100%;">
                                            <h:selectBooleanCheckbox value="#{cus.selected}" styleClass="checkTour" lang="#{cus.pn100}"/>
                                            </div>
                                        </rich:column>
                                        <rich:column width="30px">
                                            <f:facet name="header">
                                                <h:outputText value="SDT" />
                                            </f:facet>

                                             <div style="width:100%;">
                                                <h:outputText value="0999999999" />
                                            </div>
                                        </rich:column>
                                        <rich:column width="200px">
                                            <f:facet name="header">
                                                <h:outputText value="HỌ TÊN" />
                                            </f:facet>

                                            <div style="width:100%;">
                                                <h:outputText value="Nguyễn Sơn Tùng" />
                                            </div>
                                        </rich:column>
                                        <rich:column width="20px">
                                            <f:facet name="header">
                                                <h:outputText value="KHÁCH HÀNG" />
                                            </f:facet>

                                             <div style="width:100%;">
                                                <h:outputText value="KHCN" />
                                            </div>
                                        </rich:column>
                                         <rich:column width="200px">
                                            <f:facet name="header">
                                                <h:outputText value="NGƯỜI CHỊU TRÁCH NHIỆM" />
                                            </f:facet>

                                              <div style="width:100%;">
                                                <h:outputText value="admin@saigon-travel.com" />
                                            </div>
                                        </rich:column>
                                    </rich:dataTable>
                                     </div>
                                </div>
                            </div>
                            <div class="alert"></div>
                        </div>

                    </div>

                    <div class="popup-footer">

                        <div class="buttonsave" style="margin-right:33px;" onclick="parent.jQuery.fancybox.close(); "  ><span><h:outputText value="#{locale.close}"/></span></div>
                        <h:commandButton   onclick="return validatecheck('form-input-customer');"  action="#{groupController.saveN850}" value="#{locale.save}" styleClass="buttonsave">

                        </h:commandButton>
                        <h:inputHidden value="#{groupController.table}" id="table"/>

                    </div>

                </div>
            </body>
        </h:form>
    </f:view>
</html>
<script type="text/javascript">
    $j(document).ready(function(){
        yhight = ($j('.popup').height()-90)+"px" ;
        $j('.main_content').css('height',yhight );
        $j('.popup-content').css('height',yhight );
    });
</script>